﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bitirme.DAL.Entities;
using Bitirme.DAL.Enum;
using Bitirme.DAL.Data_Access;

namespace Bitirme.Controllers
{
    public class ProjectManagerHandler
    {
        /*** Tüm proje yöneticilerinin ID ve isimlerini döndürür ***/
        public List<ProjectManager> GetAllProjectManagers()
        {

            return ProjectManagerCollection.GetAllProjectManagers();

        }

        public List<ProjectManager> GetAllProjectManagersWithAllAttributes() {

            return ProjectManagerCollection.GetAllProjectManagersWithAllAttributes();
        }

        /*** Proje Yöneticisi Ekler ***/
        public int InsertProjectManager(string name, string surname, string email, decimal salaryPerDay, float hourPerDay)
        {

            ProjectManager manager = new ProjectManager();
            manager.Name = name;
            manager.SurName = surname;
            manager.Email = email;
            manager.SalaryPerDay = salaryPerDay;
            manager.HourPerDay = hourPerDay;

            return ProjectManagerCollection.InsertProjectManager(manager);

        }

        public Boolean DeleteProjectManagerByID(int projectManagerID) {

            return ProjectManagerCollection.DeleteProjectManagerByID(projectManagerID);
        }
    }
}